import request from '@/utils/request'
// 接口的封装
/* 行政区域 */
export function district_getTableData(data) {
    // console.log(data,'data')
    return request({
        url: '/admin/region/list',
        method: 'get',
        params: { ...data }
    })
}
/* 品牌制造商 */
//初始化表格
export function brand_getTableData(data) {
    // console.log(data,'data')
    return request({
        url: '/admin/brand/list',
        method: 'get',
        params: { ...data }
    })
}
// 编辑提交
export function brand_editUpData(data) {
    // console.log(data,'data')
    return request({
        url: '/admin/brand/update',
        method: 'post',
         data 
    })
}
// 添加提交
export function brand_addUpData(data) {
    // console.log(data,'data')
    return request({
        url: '/admin/brand/create',
        method: 'post',
         data 
    })
}
//删除行
export function brand_deleteRow(data) {
    // console.log(data,'data')
    return request({
        url: '/admin/brand/delete',
        method: 'post',
         data 
    })
}
